
public class LengthAndNext {

    int nextNodeOnPath;

    double pathLength;

    LengthAndNext(int next, double length) {

        nextNodeOnPath = next;

        pathLength = length;
    }
}
